package com.yuqing.myblogServe.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuqing.myblogServe.dao.entity.Article;
import com.yuqing.myblogServe.dao.entity.ArticleLikesRecord;

public interface ArticleLikesRecordService extends IService<ArticleLikesRecord> {
    // 判断该文章是否点赞
    boolean isLike(String articleId, Long likerId);

    /**
     * 添加点赞的记录
     * @param articleLikesRecord
     */
    void insertArticleLikesRecord(ArticleLikesRecord articleLikesRecord);

    /**
     * 通过文章id删除文章点赞记录
     * @param articleId 文章id
     */
    void deleteArticleLikesRecordByArticleId(String articleId);


}
